export default function useValueEnum(arrayList: Array<{ label: string, value: string | number }>) {
  return arrayList.reduce((pre, cur) => {
    (pre as any)[cur.value] = {
      text: cur.label,
      status: 'Success',
    }
    return pre
  }, {})
}
